//here you can define how many theme, language, layouts and invalid title of the tab
//automatically the system will take the configuratino from here and create/validate them

var wfc_servercgi_wftalk = homeBase+'db_controller.php';
var wfc_servercgi_serverlist = homeBase+'server_list.php';
var wfc_servercgi_proxylist = homeBase+'proxy_list.php';
var wfc_servercgi_proxyrequest = homeBase+'proxy_controller.php';
var wfc_servercgi_other_controller = homeBase+'controller.php';

//define theme
var themeSetting ={
   "theme": [
	]
};



//define langauages
var languageSetting ={
    "language": [
    	{"name": "English", "iso": "en_US"},
    	{"name": "Traditional Chinese", "iso": "zh_TW"}
 	]
};

//set layout's width here
var l1 = "100%";
var l2 = "50%,50%";
var l3 = "33%,34%,33%";
var l4 = "25%,25%,25%,25%";
var l5 = "25%,75%";
var l6 = "25%,50%,25%";
var l7 = "80%,20%";



//limit the user of tabs
var tabLimit=30;

//limit the user of widgets
var wfc_widgetLimit=20;

//per page widget number for add widget dialog
var addWidgetsPerPage=4;

//widget ajax request timeout value in milliseconds
var ajaxTimeoutValue=30000;

//widget pool ajax request timeout value in milliseconds
////var ajaxTimeoutValue_update_widgetPool=300000;

//warn user how many servers will affect performance
var warningservercount=10;

//Chars count to wrap server name for server visibility
var serverwrapcharscount=56;

//Chars count to wrap server name for edit setting
var settingwrapcharscount=32;


//default language
var defaultLang='en_US';

// default page
var defaultPage='index.php';

//custom default options for widgets
var custom_options = {
	boxWindow : {
        BtnRefresh: true,
        BtnHelp: false,
        BtnClose: true,
        BtnMin: true,
        BtnMax:true,
        alwaysShowBtns: true,
        BtnSettingsText: false,
        BtnSettingsClass: true // switch different class when click
	},
	AddWidgetWindow : {
		category: false
	},
	//use Modal widget setting or not
	use_modal_widget_setting:true,
	//Define to hide localhost in server list or not, if set true then need to make sure remove
  //localhost in default_reportserver
	hide_localhost:false,
	//custom default report server for Scan Server, server ID and host name mapping, server ID 1 is localhost
	default_reportserver:{
	 "1": "localhost"
	}
};

// page header
var DisplayPageHeader = true;

// page header menu
var DisplayPageHeaderMenu = true;

// page footer
var DisplayPageFooter = true;

// language in page footer
var wfc_DisplayPageFooterLanguage = false;

// widget property
var widget_property = {
	showMin: 		  false,
	showClose: 		true,
	showSetting:	true,
	showHelp:     false,
	allowDrag:		true
};

// tab setting property
var tab_setting_property = {
	Icon:			false,
	LayoutSetting:	true,
	HideChangeLayoutSetting: false
};

//Widget Drag and Drop  visual effect
var wfc_dragdrop_effectOnOff = true;
//The duration of the effect in ms
var wfc_dragdrop_effectDuration = 350;
//Widget Minimize and Maximize  visual effect
var wfc_minmaxslide_effectOnOff = false;

// Page Name will be localize or not
var wfc_loc_pageName = true;

// Page Body min width in px
var wfc_pagebody_minwidth=800;

// Charts min height in px
var wfc_chart_minheight=200;

// Define timeout error code
var wfc_timeout_errorcode=0;

// Define failure error code
var wfc_failure_errorcode=-1;

//Define how many days to show new on add widgets page
//If you change this value, please synchronize this value in /inc/config.php
var wfc_shownew_days=14;

// Global Help link
var wfc_global_help_link = true;

// Help file location
var wfc_help_file_location='./help/summary.htm';

//Specify whether showing add tab button
var wfconf_add_tab_setting=true;

//Specify whether showing edit tab button
var wfconf_edit_tab_setting=true;

var wf_error_number = 4;

var wf_product_header = false;
var wf_product_header_html = '';
var wf_product_message = false;
var wf_product_message_html = '';
var wf_iframe_id = 'widget_framework';

//max height for modal : 1 means 100% of body height, 0.9 means 90% of body height
var wf_modalMaxHeight = 1;

//modal offset x
var wfc_modalOffsetX = 0;

//modal offset y
var wfc_modalOffsetY = 0;

//whether showing widget x scrollbar when widget content is too long
var wfc_widgetXScrollbar = true;

//min height of iframe
var wfc_iframe_minHeight = 500;

//top of modal in iframe
var wfc_iframe_modal_top = 5;

//if need language mapping
var wfc_mapping_lang = true;

//if have customized layout
var wfc_customized_layout = false;

var wfc_listWidgetNumber = 10;

//widget default height: must be bigger than 44
var wfc_defaultWidgetHeight = 200;

//widget image L10N for default image and preview image in add widget page
var wfc_icon_L10N = false;

//show notification for updating widget component and configure widget in dashBoard container
var wfc_widget_component_and_configure_widget_message_container = ['dashBoard'];